- name: make the app be real
  hosts: os-masters-stg[0]
  user: root
  gather_facts: False

  vars_files:
    - /srv/web/infra/ansible/vars/global.yml
    - "/srv/private/ansible/vars.yml"
    - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml

  roles:
  - role: openshift/project
    app: release-monitoring
    description: release-monitoring
    appowners:
    - jcline
  - role: openshift/object
    app: release-monitoring
    file: imagestream.yml
    objectname: imagestream.yml
  - role: openshift/object
    app: release-monitoring
    file: buildconfig.yml
    objectname: buildconfig.yml
  - role: openshift/start-build
    app: release-monitoring
    buildname: release-monitoring-web-build
  - role: openshift/object
    app: release-monitoring
    template: configmap.yml
    objectname: configmap.yml
  - role: openshift/object
    app: release-monitoring
    file: service.yml
    objectname: service.yml
  - role: openshift/object
    app: release-monitoring
    file: route.yml
    objectname: route.yml
  - role: openshift/object
    app: release-monitoring
    file: deploymentconfig.yml
    objectname: deploymentconfig.yml
  - role: openshift/rollout
    app: release-monitoring
    dcname: release-monitoring-web
